package com.bigdata.service.mysql;

import com.bigdata.model.Result;
import com.bigdata.model.SearchModel;
import com.bigdata.model.ZTreeBean;
import com.bigdata.mysql.entity.JkfwMenu;
import com.bigdata.mysql.entity.JkfwMenuExample;
import com.bigdata.service.mysql.base.IBaseService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * JkfwMenu的服务接口
 *
 * @author
 */
public interface JkfwMenuService extends IBaseService<JkfwMenu, JkfwMenuExample> {

    Result querySearch(SearchModel searchModel);

    Result queryGdTree(SearchModel searchModel);

    Result addMenu(JkfwMenu jkfwMenu);

    Result updateMenu(JkfwMenu jkfwMenu);

    Result delMenu(String id);

    /**
     * @Author lly
     * @param: request
     * @param: pid
     * @param: type
     * @Date 2019/10/28 0028
     * @return: java.util.List<com.bigdata.model.ZTreeBean>
     * @Description 获取功能树
     */
    List<ZTreeBean> getTreeBeans(HttpServletRequest request, String pid, String type);

    /**
     * @Author lly
     * @param: pid
     * @param: request
     * @param: type
     * @Date 2019/10/28 0028
     * @return: java.util.List<com.bigdata.model.ZTreeBean>
     * @Description
     */
    List<ZTreeBean> userHomeTreeBeans(String pid, HttpServletRequest request, String type);
}
